package tests;

//import static org.junit.Assert.*;
import static org.mockito.Mockito.*;
import game.Console;
import game.Game;
import game.GameMessages;

import org.junit.Before;
import org.junit.Test;

public class GameTest {
	Console consoleMock;
	Game game;
	
	@Before
	public void doBefore()
	{
		consoleMock = mock(Console.class);
		game = new Game(consoleMock);
	}
	
	@Test
	public void testInit() {
		game.init();
		verify(consoleMock).show(GameMessages.ENTERFIRSTPLAYER);
		verify(consoleMock, atLeast(2)).readLine();
		verify(consoleMock).show(GameMessages.ENTERSECONDPLAYER);
	}

}
